package peer;

import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.util.jar.JarFile;
import java.util.jar.Pack200;
import java.util.jar.Pack200.Packer;

public class Pack {

	/**
	 * @param args
	 * @throws IOException 
	 */
	public static void main(String[] args) throws IOException {
		File f1=new File("E:\\workspace9\\p2pos\\env\\lifb\\rt1.zip");
		File f2=new File("E:\\workspace9\\p2pos\\env\\lifb\\rt.jar");
		Packer packer=Pack200.newPacker(); 
		OutputStream output=new BufferedOutputStream(new FileOutputStream(f2)); 
		packer.pack(new JarFile(f1), output); 
		output.close(); 

	}

}
